import re
from bs4 import BeautifulSoup
import requests

res = requests.get(
    url="http://s.10010.com/hebei/mobilelist-0-0-0-0-0-0-0-0-177-0-0-p2/"
)

soup = BeautifulSoup(res.text, features='html.parser')

li_list_node = soup.find_all(name='li', attrs={'class': "goodsLi"})
for li_node in li_list_node:
    a = li_node.find(name='a', attrs={'class': "name"})
    title = a.text

    label = li_node.find(name="label", attrs={'class': "priceD"})
    price = label.text
    price_int = int(re.findall(r"￥(\d+)", price)[0])

    a2 = li_node.find(name="p", attrs={"class": "evalNum"}).find(name='a')
    comment = a2.text
    comment_count = int(re.findall(r"已有(\d+)人评价", comment)[0])

    print(title)
    print(price, price_int)
    print(comment, comment_count)
    print('------------')